package com.kmist.xiakexing.main.socket;

public class DataRecver {
    private int resp_code;
    private String resp_cmd;
    private String resp_data;

    public DataRecver() {
    }

    public DataRecver(int resp_code, String resp_cmd, String resp_data) {
        this.resp_code = resp_code;
        this.resp_cmd = resp_cmd;
        this.resp_data = resp_data;
    }

    public int getResp_code() {
        return resp_code;
    }

    public void setResp_code(int resp_code) {
        this.resp_code = resp_code;
    }

    public String getResp_cmd() {
        return resp_cmd;
    }

    public void setResp_cmd(String resp_cmd) {
        this.resp_cmd = resp_cmd;
    }

    public String getResp_data() {
        return resp_data;
    }

    public void setResp_data(String resp_data) {
        this.resp_data = resp_data;
    }

    @Override
    public String toString() {
        return "{" +
                "\"resp_code\":" + resp_code +
                ", \"resp_cmd\":\'" + resp_cmd + "\'" +
                ", \"resp_data\":\'" + resp_data + "\'" +
                '}';
    }
}
